package com.ruoyi.community.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.community.mapper.SysCommunityMapper;
import com.ruoyi.community.domain.SysCommunity;
import com.ruoyi.community.service.ISysCommunityService;

/**
 * 小区表Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-10-14
 */
@Service
public class SysCommunityServiceImpl implements ISysCommunityService 
{
    @Autowired
    private SysCommunityMapper sysCommunityMapper;

    /**
     * 查询小区表
     * 
     * @param id 小区表主键
     * @return 小区表
     */
    @Override
    public SysCommunity selectSysCommunityById(Integer id)
    {
        return sysCommunityMapper.selectSysCommunityById(id);
    }

    /**
     * 查询小区表列表
     * 
     * @param sysCommunity 小区表
     * @return 小区表
     */
    @Override
    public List<SysCommunity> selectSysCommunityList(SysCommunity sysCommunity)
    {
        return sysCommunityMapper.selectSysCommunityList(sysCommunity);
    }

    /**
     * 新增小区表
     * 
     * @param sysCommunity 小区表
     * @return 结果
     */
    @Override
    public int insertSysCommunity(SysCommunity sysCommunity)
    {
        return sysCommunityMapper.insertSysCommunity(sysCommunity);
    }

    /**
     * 修改小区表
     * 
     * @param sysCommunity 小区表
     * @return 结果
     */
    @Override
    public int updateSysCommunity(SysCommunity sysCommunity)
    {
        return sysCommunityMapper.updateSysCommunity(sysCommunity);
    }

    /**
     * 批量删除小区表
     * 
     * @param ids 需要删除的小区表主键
     * @return 结果
     */
    @Override
    public int deleteSysCommunityByIds(Integer[] ids)
    {
        return sysCommunityMapper.deleteSysCommunityByIds(ids);
    }

    /**
     * 删除小区表信息
     * 
     * @param id 小区表主键
     * @return 结果
     */
    @Override
    public int deleteSysCommunityById(Integer id)
    {
        return sysCommunityMapper.deleteSysCommunityById(id);
    }
}
